<template>
  <view class="blue-head-card-container">
      <view class="header">
          <u-icon :name="icon"></u-icon>
          <view class="title">{{title}}</view>
          <!-- <u-icon name="play-right-fill"></u-icon> -->
      </view>
      <view class="body">
          <slot></slot>
      </view>
  </view>
</template>

<script>
export default {
    props:{
        title:{
            type:String,
            default: '标题'
        },
        icon:{
            type:String,
            default: 'tags'
        }

    }
}
</script>

<style lang="scss" scoped>
.blue-head-card-container{
    margin-bottom: 20rpx;
}
.blue-head-card-container>.header{
    display: flex;
    flex-flow: row nowrap;
    height: 60rpx;
    align-items: center;
    padding: 0 20rpx;
    background-color: white;
    border-radius: 10rpx;
    box-shadow: 0.05rem 0.05rem 0.2rem #999;
    border-left: 5px solid #3745eb;
    color: black;
    &>.title{
        flex: 1 0 auto;
        margin: 0 20rpx;
    }
}

.blue-head-card-container>.body{
    padding: 20rpx 0;
}
</style>